# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-keepass
pkgver=3.0.3
pkgrel=1
pkgdesc="Python3 library to interact with keepass databases"
url="https://github.com/pschmitt/pykeepass"
arch="noarch !s390x !mips !mips64" # pykeepass test fail on s390x and mips
license="GPL-3.0-only"
depends="python3 py3-dateutil py3-pycryptodome py3-construct py3-lxml
	py3-argon2-cffi py3-cffi py3-future py3-setuptools"
makedepends="python3-dev"
source="https://pypi.io/packages/source/p/pykeepass/pykeepass-$pkgver.tar.gz"
builddir="$srcdir/pykeepass-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="c683f434032543be741696f8cc943995bb070db0463a9027279813fa42a9fbdf8747342cc59da24231ac70abb00b5036ccfcb24dc99a231902ed13f1e3438f58  pykeepass-3.0.3.tar.gz"
